package com.earnings.okhttputils.utils.ui.activity.user;

import android.view.View;
import android.widget.EditText;
import android.widget.ImageView;

import com.earnings.R;
import com.earnings.okhttputils.utils.UrlConstant.Constant;
import com.earnings.okhttputils.utils.god.GodLeftHandBaseActivity;


/*
编辑用户信息-设置支付密码
 */

public class UserEditPaypasswordActivity extends GodLeftHandBaseActivity implements View.OnClickListener {


    private ImageView clear;
    private EditText nick;

    @Override
    protected int onCreateLayoutId() {
        return R.layout.activity_user_edit_paypsw;
    }

    @Override
    protected void init() {

        setTitle("支付密码设置");
        findViewById(R.id.update).setOnClickListener(this);
        findViewById(R.id.forget).setOnClickListener(this);
    }



    @Override
    public void onClick(View v) {

        int i = v.getId();
        if (i == R.id.update) {
            skipActivity( UserEditPaypasswordSetOldActivity.class );
        }else if(i == R.id.forget){
            skipActivity( UserEditPaypasswordForgetActivity.class );
        }

    }


    @Override
    public void finish() {
        super.finish();

        setResult( Constant.USER_UPDATE );
    }
}
